package com.ytjj.bigdata.controller;

import com.ytjj.bigdata.model.dto.AdsProductCountDto;
import com.ytjj.bigdata.service.AdsProductCountService;
import com.ytjj.common.api.CommonResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/adsProduct")
public class AdsProductCountController {
    @Resource
    private AdsProductCountService adsProductCountService;

    @PostMapping("/productList")
    public CommonResult productList(@RequestBody AdsProductCountDto adsProductCountDto) {
        return CommonResult.success(adsProductCountService.selectAdsProduct(adsProductCountDto));
    }
}
